package com.yupi.service;

/**
 * @author vvv
 * @date 2023-10-08 14 32
 * discription
 */
public interface InnerUserInterfaceInfoService {
    /**
     * 调用接口次数+1
     * @param interfaceInfoId 接口id
     * @param userId 用户 id
     * @return
     */
    boolean invokeCount(long interfaceInfoId, long userId);

    /**
     *  获取用户的某个接口的剩余调用次数
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    int getLeftInvokeNum(long interfaceInfoId, long userId);
}
